package com.rm.dubbo.app;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @ProjectName: rm-dubbo-parent
 * @Auther: GERRY
 * @Date: 2019/1/16 20:28
 * @Description:
 */
public class MainThreadStart {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:spring/spring-context.xml");
        context.start();
        // 阻塞主线程
        System.in.read();
    }
}
